package cn.hist.hfp.converter;

import cn.hist.hfp.entity.Manager;
import cn.hist.hfp.vo.ManagerVO;
import org.springframework.stereotype.Component;

@Component
public class ManagerConverter {

    public ManagerVO convert(Manager manager) {
        return ManagerVO.builder().name(manager.getName()).id(manager.getId()).build();
    }
}
